package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type SendGraphicMessageRequest struct {
	ActivityId      *int64           `json:"ActivityId"`
	GraphicMessages *GraphicMessages `json:"GraphicMessages"`
}
type GraphicMessages struct {
	GraphicMessage []GraphicMessage `json:"Context"`
}
type GraphicMessage struct {
	GraphicMessageContext string `json:"GraphicMessageContext"`
	GraphicMessageType    int32  `json:"GraphicMessageType"`
}
type SendGraphicMessageResponse struct {
	GraphicMessageId int64 `json:"GraphicMessageId"`
}

func (instance *Instance) SendGraphicMessage(data *SendGraphicMessageRequest) (*SendGraphicMessageResponse, error) {
	d := request.Data{
		Action: "SendGraphicMessageAPI",
	}
	bindQuery(&d, *data)
	var res SendGraphicMessageResponse
	err := instance.post(&d, &res)
	return &res, err
}
